<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
	<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li><label><@label key='materialCode.C,colon'>物料编号：</@label></label> <input class="look" type="text" name="materialCode" value="${condition.materialCode!''}" id="materialLookup.materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" /> <a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>" lookupGroup="materialLookup"></a></li>
				<li><label id="materialText"><@label key="materialText.C,colon">物料描述：</@label></label> <input type="text" name="materialText" value="${condition.materialText!''}" /></li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key="pullStrategy.C,colon">拉动策略：</@label></label> <select name="pullStrategyCode">
						<option value=""><@label key="all.C">所有</@label></option> <#list pullStrategys as pullStrategy>
						<option value="${pullStrategy.pullStrategyCode}"<#if condition.pullStrategyCode?? && condition.pullStrategyCode == pullStrategy.pullStrategyCode> selected="selected"</#if>>${pullStrategy.pullStrategyCode}-${pullStrategy.pullStrategyText}</option> </#list>
				</select></li>
				<li><label><@label key="distributionMode.C,colon">配送形式：</@label></label> <select name="distributionModeCode">
						<option value=""><@label key="all.C">所有</@label></option> <#list distributionModes as distributionMode>
						<option value="${distributionMode.distributionModeCode}"<#if condition.distributionModeCode?? && condition.distributionModeCode == distributionMode.distributionModeCode> selected="selected"</#if>>${distributionMode.distributionModeCode}-${distributionMode.distributionModeText}</option> </#list>
				</select></li>
				<li class="query">
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit"><@label key="query.B">查询</@label></button>
						</div>
					</div>
				</li>
				<li class="advancedQuery"><a href="javascript:void(0);" onclick="openAdvanced(navTab.getCurrentPanel());"> <@label key="advancedQuery.C">高级查询</@label> </a> <span onclick="openAdvanced(navTab.getCurrentPanel());"></span></li>
			</ul>
		</div>
	</div>
	<div id="collapsablePanel" style="display: none;" class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li><label><@label key="materialspec.C,colon">物料规格：</@label></label> <input type="text" name="materialSpec" value="${condition.materialSpec!''}" /></li>
				<li><label><@label key="distributionCycle.C,colon">默认配送周期：</@label></label> <input type="text" name="distributionCycle" value="${condition.distributionCycle!''}" /></li>
				<li><label><@label key="defaultWarehouse.C,colon">默认线边仓库：</@label></label> <input class="look" type="text" name="warehouseCode" value="${condition.warehouseCode!''}" id="toWarehouseCodeGrp.warehouseCode" postField="warehouseCode" suggestFields="warehouseCode,warehouseText" suggestUrl="${rc.getContextPath()}/manage/warehouse/warehouseSuggest?type=all" lookupGroup="toWarehouseCodeGrp" /> <a class="btnLook" href="${rc.getContextPath()}/manage/warehouse/warehouseLookUp?type=all" rel="toWarehouseCodeGrp_dialog" title="<@label key='select.C,WarehouseCode.C'>选择仓库编号</@label>" lookupGroup="toWarehouseCodeGrp"></a></li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key="defaultStorageLocation.C,colon">默认线边库位：</@label></label><input class="look" width="700" height="450" name="storageLocationCode" value="${condition.storageLocationCode!''}" size="22" type="text" maxlength="60" id="storageLocationLookup.storageLocationCode" postField="storageLocationCode" suggestFields="storageLocationCode" suggestUrl="${rc.getContextPath()}/manage/storageLocation/storageLocationSuggest" lookupGroup="storageLocationLookup" /> <a class="btnLook" href="${rc.getContextPath()}/manage/storageLocation/storageLocationLookUp?type=all" rel="storageLocationLookUp_dialog" title="<@label key='select.C,storageLocationCode.C'>选择库位编号</@label>" lookupGroup="storageLocationLookup"></a></li>
				</li>
				<li><label><@label key="distributionQuantity.C,colon">默认单次配送量：</@label></label> <input type="text" name="distributionQuantity" value="${condition.distributionQuantity!''}" /></li>
				<li><label><@label key="distributionUser.C,colon">默认配送人员:</@label></label> <input name="distributionUser" value="${condition.distributionUser!''}" size="22" type="text" maxlength="40" class="required  alphanumeric toUp" id="userWarehouseLookup.userCode" postField="userCode" suggestFields="userCode,userText" suggestUrl="${rc.getContextPath()}/manage/user/userSuggest" lookupGroup="userWarehouseLookup" remote="${rc.getContextPath()}/manage/user/userSuggest" /></li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key="lockFlag.L">锁定标记：</@label></label> <select name="lockFlag">
						<option value=-1><@label key="all.C">所有</@label></option>
						<option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
						<option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
				</select></li>
			</ul>
		</div>
	</div>
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<@buttonRight menuCode="PFEP_ADD" labelKey="add.B" defalutName="新增">
			<li><a class="add" target="dialog" mask="true" width="635" height="250" href="${rc.getContextPath()}/manage/pfep/addPfep?navTabId=${navTabId!''}" rel="addPfep" title="<@label key="add.B,pfep.C">新增PFEP</@label>"><span><@label key="add.B">新增</@label></span>
			</a></li> </@buttonRight> <@buttonRight menuCode="PFEP_EDIT" labelKey="edit.B" defalutName="编辑">
			<li><a class="edit" target="dialog" mask="true" width="635" height="320" href="${rc.getContextPath()}/manage/pfep/editPfep?id={pfep_code}&navTabId=${navTabId!''}" rel="modifyPfep" title="<@label key="edit.B,pfep.C">编辑PFEP</@label>"><span><@label key="edit.B">编辑</@label></span>
			</a></li> </@buttonRight> <@buttonRight menuCode="PFEP_VIEW" labelKey="view.B" defalutName="详情">
			<li><a class="icon" target="dialog" mask="true" width="635" height="320" href="${rc.getContextPath()}/manage/pfep/viewPfep?id={pfep_code}&navTabId=${navTabId!''}" rel="viewPfep" title="<@label key="pfep.C,view.B">PFEP详情</@label>"><span><@label key="view.B">详情</@label></span>
			</a></li> </@buttonRight> <@buttonRight menuCode="PFEP_DEL" labelKey="delete.B" defalutName="删除">
			<li><a class="delete" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/manage/pfep/deletePfep?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key="delPfep.M">确认要删除选中的PFEP吗？</@label>"><span><@label key="delete.B">删除</@label></span>
			</a></li> </@buttonRight>
		</ul>
	</div>
	<table class="table" id="iTable" width="100%" layoutH="165" style="overflow: scroll;">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="32"><@label key="serialNumber.C">序号</@label></th>
				<th width="100"><@label key="materialCode.C">物料编号</@label></th>
				<th width="100"><@label key="materialText.C">物料描述</@label></th>
				<th width="100"><@label key="materialspec.C">物料规格</@label></th>
				<th width="100"><@label key="pullStrategy.C">拉动策略</@label></th>
				<th width="100"><@label key="distributionMode.C">配送形式</@label></th>
				<th width="100"><@label key="distributionCycle.C">默认配送周期</@label></th>
				<th width="100"><@label key="defaultWarehouse.C">默认线边仓库</@label></th>
				<th width="100"><@label key="defaultStorageLocation.C">默认线边库位</@label></th>
				<th width="100"><@label key="distributionUser.C">默认配送人员</@label></th>
				<th width="100"><@label key="distributionQuantity.C">默认单次配送量</@label></th>
				<th width="100"><@label key="lockFlag.C">锁定标记</@label></th>

			</tr>
		</thead>
		<tbody>
			<#if page??><#if (page.data?size>0)> <#list page.data as pfep>
			<tr target="pfep_code" rel="${pfep.materialCode!''}">
				<td><input name="ids" value="${pfep.materialCode!''}" type="checkbox"></td>
				<td>${page.startRow + pfep_index}</td>
				<td>${pfep.materialCode!''}</td>
				<td>${pfep.materialText!''}</td>
				<td>${pfep.materialspec!''}</td>
				<td>${pfep.pullStrategyCode!''}</td>
				<td>${pfep.distributionModeCode!''}</td>
				<td>${pfep.distributionCycle!''}</td>
				<td>${pfep.warehouseCode!''}</td>
				<td>${pfep.storageLocationCode!''}</td>
				<td>${pfep.distributionUser!''}</td>
				<td>${pfep.distributionQuantity!''}</td>
				<td><#if (pfep.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
			</tr>
			</#list> <#else>
			<tr target="pfep_code">
				<td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
			</tr>
			</#if><#else>
			<tr target="pfep_code">
				<td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
			</tr>
			</#if>
		</tbody>
	</table>
	<#include "/common/panelBar.html">
</div>

<script>
	$(function() {
		initAdvancedQuery(navTab.getCurrentPanel());
	});
</script>